www.mxdraw.com
|
得到所有扩展数据名称
[helpstring("method GetAllAppName")] HRESULT GetAllAppName([out, retval] IMxDrawResbuf** ppRet);
参数 |
说明 |
[out, retval] IMxDrawResbuf** ppRet |
返回IMxDrawResbuf扩展数据名称数组 |
例如: VC 2005 调用
MxDrawXLib::IMxDrawUtilityPtr mxUtility; mxUtility.CreateInstance(__uuidof( MxDrawXLib::MxDrawUtility )); if(mxUtility == NULL) { return; } CComPtr<IMxDrawPoint> spPickPoint; IMxDrawEntityPtr spEntity = mxUtility->GetEntity(&spPickPoint,_T("请选择实体")); if(spEntity == NULL) return; IMxDrawResbufPtr spRet = spEntity->GetAllAppName(); if(spRet == NULL) return; for(long i = 0; i < spRet->Count;i++) { AfxMessageBox(spRet->AtString(i) ); }